# 启动 ane_service 容器


cd ~/ane_service

# 停止现有的container
echo ""
echo "STOP All containers"
./dev_tools/term.sh >/dev/null 2>&1


# 删除所有Exit的container
echo ""
~/ane_service/dev_tools/clear_images.sh
echo ""

# 启动 redis （为sse的消息队列）
echo ""
#echo "START Redis ..."
#echo "docker run --name redis -d -p 6379:6379 redis"
#sudo  docker run --name redis -d -p 6379:6379 redis
echo ""

# --name 指定容器名称，便于停止 “ docker stop 容器名”
# -p 宿主机端口:容器端口
# -v 宿主机目录:容器目录, 把容器日志等运行信息保存在宿主机上
echo ""
echo "START ane_service ..."
echo "docker run --name ane_service  -p 80:80 -v /var/log:/var/log -it ane_service"
sudo  docker run --name ane_service  -p 80:80 -v /var/log:/var/log -it ane_service
echo ""